<?php

/**
 * 这个控制器从文章数据库调取和展示网站相关的信息
 * 
 * @author hongyang
 */
class SiteInfoController extends BaseArticleController
{

    protected $layout = 'layouts.master';

    public function listSiteInfo()
    {
        return $this->getArticleListView('news.list', Article::TYPE_SITEINFO);
    }

    /**
     * 看详情
     */
    public function view($id)
    {
        return $this->articleView($id, 'news.view', Article::TYPE_SITEINFO);
    }
}